package com.smart.web.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.smart.web.entity.Banner;

import java.util.List;

public interface BannerMapper extends BaseMapper<Banner> {

    default List<Banner> selectList() {
        QueryWrapper<Banner> queryWrapper = new QueryWrapper();
        queryWrapper.lambda().eq(Banner::getStatus, 1).eq(Banner::getType, 1);
        return this.selectList(queryWrapper);
    }
}